
package ro.qi.framework.sys.scheduler.entities;

import java.util.Date;

import ro.qi.framework.sys.entities.Entity;

public class SchedulerTaskParameter extends Entity {

	public static final int TYPE_NONE				= 0;
	public static final int TYPE_STRING				= 1;
	public static final int TYPE_BOOLEAN			= 2;
	public static final int TYPE_INTEGER			= 3;
	public static final int TYPE_FLOAT				= 4;
	public static final int TYPE_DATE				= 5;
	 
	public static final int TYPES[]					= {TYPE_STRING, TYPE_BOOLEAN, TYPE_INTEGER, TYPE_FLOAT, TYPE_DATE};

	public SchedulerTaskParameter() {
		super();
	}

	public SchedulerTaskParameter(int parameterId) {
		super();
		setId(parameterId);
	}

	public void setId(int value) {
		setValue("id", value);
	}

	public int getId() {
		return getIntValue("id");
	}

	public void setTaskId(int value) {
		setValue("taskId", value);
	}

	public int getTaskId() {
		return getIntValue("taskId");
	}

	public void setType(int value) {
		setValue("type", value);
	}

	public int getType() {
		return getIntValue("type");
	}

	public void setValue(String value) {
		setValue("value", value);
	}

	public String getValue() {
		return getStringValue("value");
	}

	public void setDescription(String value) {
		setValue("description", value);
	}

	public String getDescription() {
		return getStringValue("description");
	}

	public Date getCreatedTime() {
		return getDateValue("createdTime");
	}

	public Date getUpdatedTime() {
		return getDateValue("updatedTime");
	}

}
